<!DOCTYPE html>
 <html lang="en">
 <head>
 	<meta charset="UTF-8">
 	<title>比赛信息</title>
 </head>
 <body>
 	<center>
      <h1>比赛信息</h1>
      <table border="1" cellspacing ="0">
      	<tr>
      		<th>主场</th>
      		<th>比分</th>
      		<th>客场</th>
          <th>操作</th>
      	</tr>
  
        {foreach from=$match item=v}
              <tr>
                  <td><a href="index.php?c=Team&a=teamList&id={$v['teamone']}">{$v['te1']}</a></td>
                   <td>{$v['score']}</td>
                   <!--    通过地址栏可以看出要访问的控制器是Team要访问的方法名是teamList -->
                   <td><a href="index.php?c=Team&a=teamList&id={$v['teamtwo']}">{$v['te2']}</a></td>
                   <td><a href="index.php?c=Match&a=delMatch">删除</a>
                   <a href="index.php?c=Match&a=updateMatch">修改</a>
                   <a href="index.php?c=Match&a=addMatch">添加</a></td>
              </tr>
              {/foreach}
      </table>
 	</center>
 </body>
 </html>